package com.itbupt.domain.credit.repository;

import com.itbupt.domain.credit.model.aggregate.TradeAggregate;
import com.itbupt.domain.credit.model.entity.CreditAccountEntity;

/**
 * @Author dingchang
 * @Date 2025/4/12 23:11
 * @Description:  用户积分仓储
 */
public interface ICreditRepository {

    /**
     * 保存用户积分交易订单
     * @param tradeAggregate
     */
    void saveUserCreditTradeOrder(TradeAggregate tradeAggregate);

    // 查询用户积分账户
    CreditAccountEntity queryUserCreditAccount(String userId);

}
